package org.luckystrophe.snowtoms.model.impl;

import org.apache.http.client.methods.HttpGet;
import org.apache.http.client.methods.HttpUriRequest;
import org.luckystrophe.snowtoms.model.JsonRequestGET;
import org.luckystrophe.snowtoms.pref.SnowtomsPreference;

import android.content.Context;

import com.googlecode.androidannotations.annotations.EBean;
import com.googlecode.androidannotations.annotations.RootContext;

@EBean
public class AddressSearchRequest extends JsonRequestGET {

	@RootContext
	Context context;

	private String query;

	@Override
	public HttpUriRequest getHttpUriRequest() {
		HttpGet getHttp = new HttpGet(SnowtomsPreference.DAUM_MAP_API_SEACH_ADDRESS + "?apikey="
				+ SnowtomsPreference.DAUM_LOCAL_API_KEY + "&q=" + query + "&output=json");
		return getHttp;
	}

}
